package com.beidu.lottery.call.entity.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 编辑奖品表单实体
 * @author tennyson
 * @date :2023/11/20 17:28
 * @description :
 */
@Data
@Builder
@ApiModel(value = "ActivityPrizeSaveForm")
@Accessors(chain = true)
@Validated
@AllArgsConstructor
@NoArgsConstructor
public class ActivityPrizeEditForm implements Serializable {

    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "奖品名")
    @NotNull(message = "奖品名不能为空")
    @Length(max = 50, message = "奖品名长度不能超过50")
    private String prizeName;

    @ApiModelProperty(value = "奖品类型(0:实体奖品, 1:虚拟奖品, 2:积分奖品)")
    private Integer prizeType;

    @ApiModelProperty(value = "奖品图地址")
    @NotNull(message = "奖品配图不能为空")
    private String prizeImg;

    @ApiModelProperty(value = "奖励积分数")
    private Integer number;
}
